<!DOCTYPE html>

<html>
<head>
  <title>Event.coffee.md</title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
  <link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
  <div id="container">
    <div id="background"></div>
    
      <ul id="jump_to">
        <li>
          <a class="large" href="javascript:void(0);">Jump To &hellip;</a>
          <a class="small" href="javascript:void(0);">+</a>
          <div id="jump_wrapper">
          <div id="jump_page">
            
              
              <a class="source" href="Event.coffee.html">
                Event.coffee.md
              </a>
            
              
              <a class="source" href="EventRegistry.coffee.html">
                EventRegistry.coffee.md
              </a>
            
              
              <a class="source" href="EventType.coffee.html">
                EventType.coffee.md
              </a>
            
              
              <a class="source" href="Subscriber.coffee.html">
                Subscriber.coffee.md
              </a>
            
              
              <a class="source" href="header.coffee.html">
                header.coffee.md
              </a>
            
          </div>
        </li>
      </ul>
    
    <ul class="sections">
        
          <li id="title">
              <div class="annotation">
                  <h1>Event.coffee.md</h1>
              </div>
          </li>
        
        
        
        <li id="section-1">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-1">&#182;</a>
              </div>
              
            </div>
            
            <div class="content"><div class='highlight'><pre>	codes =
		<span class="hljs-string">':backspace'</span>: 	<span class="hljs-number">8</span>
		<span class="hljs-string">':tab'</span>: 		<span class="hljs-number">9</span>
		<span class="hljs-string">':return'</span>: 		<span class="hljs-number">13</span>
		<span class="hljs-string">':shift'</span>: 		<span class="hljs-number">16</span>
		<span class="hljs-string">':ctrl'</span>: 		<span class="hljs-number">17</span>
		<span class="hljs-string">':alt'</span>: 		<span class="hljs-number">18</span>
		<span class="hljs-string">':escape'</span>: 		<span class="hljs-number">27</span>
		<span class="hljs-string">':left'</span>: 		<span class="hljs-number">37</span>
		<span class="hljs-string">':up'</span>: 			<span class="hljs-number">38</span>
		<span class="hljs-string">':right'</span>: 		<span class="hljs-number">39</span>
		<span class="hljs-string">':down'</span>: 		<span class="hljs-number">40</span>
		<span class="hljs-string">':delete'</span>: 		<span class="hljs-number">46</span>
		<span class="hljs-string">':leftcmd'</span>: 	<span class="hljs-number">91</span>
		<span class="hljs-string">':rightcmd'</span>: 	<span class="hljs-number">93</span>
	
	Character = String.Where<span class="hljs-function"> -&gt;</span> <span class="hljs-property">@length</span> == <span class="hljs-number">1</span>
	SpecialKey = String.Matching <span class="hljs-regexp">/:.+/</span></pre></div></div>
            
        </li>
        
        
        <li id="section-2">
            <div class="annotation">
              
              <div class="pilwrap ">
                <a class="pilcrow" href="#section-2">&#182;</a>
              </div>
              <p>Tests: none
Docs: none</p>

            </div>
            
            <div class="content"><div class='highlight'><pre>	Event.key = Function.overload [
	
		Function.From<span class="hljs-function"><span class="hljs-params">(Character)</span>     <span class="hljs-params">(key)</span> -&gt;</span> <span class="hljs-function"><span class="hljs-params">({which})</span> -&gt;</span> String.fromCharCode(which).toUpperCase() == key
	
		Function.From<span class="hljs-function"><span class="hljs-params">(RegExp)</span>        <span class="hljs-params">(regex)</span> -&gt;</span> <span class="hljs-function"><span class="hljs-params">({which})</span> -&gt;</span> String.fromCharCode(which).toUpperCase().match(regex) <span class="hljs-keyword">or</span> <span class="hljs-literal">false</span>
	
		Function.From<span class="hljs-function"><span class="hljs-params">(Number)</span>        <span class="hljs-params">(number)</span> -&gt;</span> <span class="hljs-function"><span class="hljs-params">({which})</span> -&gt;</span> which == number
	
		Function.From<span class="hljs-function"><span class="hljs-params">(SpecialKey)</span>    <span class="hljs-params">(identifier)</span> -&gt;</span> Event.key codes[identifier]
	
		Function.From<span class="hljs-function"><span class="hljs-params">(Value,[Value])</span> <span class="hljs-params">(identifer,identifiers...)</span> -&gt;</span> Event.key(identifier).<span class="hljs-keyword">or</span> Event.key identifiers...
	
	]</pre></div></div>
            
        </li>
        
    </ul>
  </div>
</body>
</html>
